#ifndef IPADDRESSWGT_H
#define IPADDRESSWGT_H

#include <QWidget>
#include <QSpinBox>
#include <QLabel>
#include <QHBoxLayout>
#include <QEvent>

class IpAddressWgt : public QWidget
{
    Q_OBJECT

public:
    IpAddressWgt(QWidget *parent = 0);
    ~IpAddressWgt();
    void setIpAddressString(QString ipStr);
    QString getIpAddressString();

protected:
    bool eventFilter(QObject *object, QEvent *event);


private:
    QSpinBox *m_SpinBox[4];
    QLabel *m_Label[3];
    QString m_Separator;

};

#endif // IPADDRESSWGT_H
